import request from '@/utils/request'

export const listEvalutionSuggestion = (search) =>
    request({
        url: '/tEvaluate',
        method: 'get',
        params: {
            offset: search.offset,
            limit: search.limit,
            name: search.name
        }
    })

  export const getEvaluateById = (id) =>
    request({
      url: '/tEvaluate/' + id,
      method: 'get'
    })

  export const saveEvaluate = (evaluate) =>
    request({
      url: '/tEvaluate',
      method: 'post',
      data: evaluate
    })
export const updateEvaluate = (id, evaluate) =>
    request({
      url: '/tEvaluate/' + id,
      method: 'put',
      data: evaluate
    })

export const removeEvaluate = (id) =>
  request({
      url: '/tEvaluate/' + id,
      method: 'delete'
  })
